<template>
    <div>
        <head-top></head-top>
        <p class="explain_text">您好:{{adminInfo.user.username}}!您上次登录时间:{{adminInfo.user.lastlogintime|moment}}</p>
        <p class="explain_text">您当前账户余额:{{adminInfo.account.money|moneyFilter}}</p>
        <p class="explain_text"><el-tooltip  effect="dark" content="点击此处，查看账户明细" placement="right">
        <a href="#" @click.stop="$router.push('accountdetail')" type="primary">查看账户明细</a>
        </el-tooltip></p>
   </div>
</template>

<script>
     import {mapState} from 'vuex'
	import headTop from '../components/headTop'
    export default {
    	components: {
    		headTop,
    	},computed: {

       	...mapState(['adminInfo']),

       },filters:{
           moneyFilter:function(val){
               return '￥'+val+'.00';
           }
       }
    }
</script>

<style lang="less">
	@import '../style/mixin';
	.explain_text{
		margin-top: 30px;
		text-align: center;
		font-size: 20px;
		color: #333;
	}
</style>
